package ua.org.groovy.gs.botworld.event;

public class TickEvent extends Event {
	private static final TickEvent instance = new TickEvent();
	
	private static int tick;
	
	private TickEvent() {
		super("Tick");
		tick = 0;
	}
	
	public static TickEvent getInstance() {
		synchronized (instance) {
			tick++;
		}
		return instance;
	}
	
	public int getTick() {
		return tick;
	}
	
}
